

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show GriaFile</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">GriaFile List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New GriaFile</g:link></span>
        </div>
        <div class="body">
            <h1>Show GriaFile</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'id')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Description:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'description')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">File Name:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'fileName')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">File Type:</td>
                            
                            <td valign="top" class="value">
                            <g:link controller="fileType" action="show" id="${griaFile?.type?.id}">${griaFile?.type?.encodeAsHTML()}</g:link>
                            </td>
                            
                        </tr>
                                        
                        <tr class="prop">
                            <td valign="top" class="name">Owner:</td>
                            
                            <td valign="top" class="value">
                             <g:link controller="user" action="show" id="${griaFile?.owner?.id}">${griaFile?.owner?.encodeAsHTML()}</g:link>
                            </td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Readers:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'readers')}</td>
                            
                        </tr>
                        
                    
                        <tr class="prop">
                            <td valign="top" class="name">Service Address:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'serviceAddress')}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Resource ID:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:griaFile, field:'resourceID')}</td>
                            
                        </tr>
                        
                       <tr class="prop">
                            <td valign="top" class="name">Notes:</td>
                            
                            <td valign="top" class="value">
                                <g:textArea name="myField" value="${fieldValue(bean:griaFile, field:'notes')}" rows="5" cols="40"/>
                            </td>
                            
                        </tr>
                        
                
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${griaFile?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="Grant access" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                    <span class="button"><g:actionSubmit class="download" value="Download" /></span>
                    <g:if test="${griaFile.type == 'Flite Fro'}">
                            <span class="button"><g:actionSubmit class="view" action="volumeMesh" value="Create Volume Mesh" /></span>                
                    </g:if>
                </g:form>
            </div>
        </div>
    </body>
</html>
